package spring.chatroom.java_chatroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import spring.chatroom.java_chatroom.pojo.model.userInfo;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<userInfo> {

    //获取用户信息
    List<userInfo> selectAllUsers();

    userInfo selectUsersByNameAndPassWord(userInfo userInfo);

    //保存用户信息
    int insertUsers(userInfo userInfo);

    userInfo getUserByUserId(Integer userId);
}
